<?php
include_once('general_include.php');

    //$num_coach_rating_type=$_REQUEST['NumCoachRatingCat'];
	$video_id = $_POST['video_id'];
	$user_type_id=$_SESSION['user_type'];
	$review_comment = $_POST['review_comment'];
	$reviewed_by=$_POST['reviewed_by'];
	$total_rating=0;
	
	/*for($i=0;$i<$num_coach_rating_type;$i++){
		
		$get_rating[$i]=$_REQUEST['Rating_'.$i.''];
		$explode_str=explode(":",$get_rating[$i]);
		$rating[$i]=$explode_str[0];
		$rating_cat_id[$i]=$explode_str[1];
	}*/

	$VideoReviewSql="INSERT INTO ".TABLEPREFIX."_video_review set video_id='$video_id',reviewed_by='$reviewed_by',review_comment='$review_comment',is_active='Y',
	date_added='".date('Y-m-d H:i:s')."'";
	$VideoReview=mysql_query($VideoReviewSql);
	
	if($VideoReview){
		$flag=1;
	}
	else{
		$flag=0;
	}
	   
	   echo json_encode(

				array(

					'flag'	=>	1,
					'sql' => $VideoReviewSql
				)
			);
	//}		

?>